#pragma once
#include "HPSocket.h"
#include "SocketInterface.h"
class SearchHandler : public CTcpClientListener
{
public:
	SearchHandler();
	~SearchHandler();
	EnHandleResult OnReceive(ITcpClient* pSender, CONNID dwConnID, const BYTE* pData, int iLength);
	EnHandleResult OnClose(ITcpClient* pSender, CONNID dwConnID, EnSocketOperation enOperation, int iErrorCode);

	EnHandleResult OnPrepareConnect(ITcpClient* pSender, CONNID dwConnID, SOCKET socket);
	EnHandleResult OnConnect(ITcpClient* pSender, CONNID dwConnID);
	EnHandleResult OnHandShake(ITcpClient* pSender, CONNID dwConnID);
	EnHandleResult OnSend(ITcpClient* pSender, CONNID dwConnID, const BYTE* pData, int iLength);
};

